#pragma once

#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include "DataCenter.h"


class MenuLayer: public cocos2d::CCLayer{
private:
	static MenuLayer* instance;
public:
	cocos2d::CCSprite* left_breaf;
	cocos2d::CCSprite* right_breaf;
	static MenuLayer* getInstance();
	virtual bool init();
	virtual void onEnter(); 
	virtual void onExit(); 
	virtual bool ccTouchBegan(cocos2d::CCTouch* touch, cocos2d::CCEvent* event);
	 virtual void menuNormalCallback(CCObject* pSender);
	 // a selector callback
    virtual void menuChallageCallback(CCObject* pSender);
	 // a selector callback
    virtual void menuSettingCallback(CCObject* pSender);
	// implement the "static node()" method manually
	LAYER_NODE_FUNC(MenuLayer);
};